package com.sky.service.impl;

import com.sky.entity.SetmealDish;
import com.sky.mapper.SetmealDishMapper;
import com.sky.service.SetmealDishService;
import com.sky.service.SetmealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Slf4j
public class SetmealDishServiceIpml implements SetmealDishService {
    @Autowired
    SetmealDishMapper setmealDishMapper;
    /**
     * 根据套餐id查询菜品
     * @param id
     * @return
     */
    public List<SetmealDish> findBySetmealId(Long id) {
        List<SetmealDish> setmealDishes =  setmealDishMapper.findBySetmealId(id);
        return setmealDishes;
    }
}
